package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 换购商品标题 ViewHolder */
public class ChooseGiftTitleHolder extends ViewHolder {

    private TextView tvTitle;

    private TextView tvContent;

    @Override
    protected void initView(View rootView) {
        tvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        tvContent = (TextView) rootView.findViewById(R.id.tv_content);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_choose_gift_title;
    }

    public void refreshUI(String content) {
        tvContent.setText(content);
    }
}
